<pre class="docs-method-signature"><code>util.nextFrame(callback [, context, ...args])</code></pre>
<p>Tell the browser to schedule the <code>callback</code> function to be called before the next repaint.</p>

<p>This is a cross-browser version of the <code>window.requestAnimationFrame</code> <a href="https://developer.mozilla.org/en/docs/Web/API/window.requestAnimationFrame">function</a>. It returns an ID of the frame request.</p>

<p>You can optionally pass a <code>context</code> for your callback function. Any further arguments are passed as arguments to the callback function.</p>
